package interceptors

import (
	infradb "aquaman/app/infra/db"
	dbinterceptor "aquaman/app/infra/db/interceptors"
	"aquaman/app/infra/job"
	"aquaman/app/infra/log"
	"github.com/google/wire"
	"go.uber.org/zap"

)

func NewTaskInteceptors(db *infradb.DB, logger log.Logger,logger1 *zap.Logger) []job.TaskInterceptor {
	return []job.TaskInterceptor{
		dbinterceptor.JobTaskInterceptor(db.CtxDB),
		CtxZapInterceptor(logger1),
		RecoveryInterceptor(logger),
	}
}

var ProviderSet = wire.NewSet(NewTaskInteceptors)